Repository navigation
refactor(options)!: simplify Options to transaction behavior and encryption - #38
Merged
Merged
Conversation
Remove with_index_method, with_vacuum, with_attach, with_generated_columns, and with_without_rowid. They only enabled application SQL and did not affect the crate's schema or queries. Require TransactionBehavior::Concurrent for with_mvcc_passive_checkpoint so it fails when MVCC is off instead of silently doing nothing. Bump to 0.4.0 for the breaking API change. Refs #27
|
ⓘ Qodo reviews are paused because the subscription is no longer active. Ask your workspace admin to reactivate the subscription to resume reviews. Manage billing |
Remove with_multiprocess_wal and with_mvcc_passive_checkpoint from the public API, leaving transaction behavior, encryption, and remote sync settings. MVCC passive checkpointing is enabled automatically for Concurrent, while the other behaviors enable multi-process WAL for file-backed local databases. Remote stores always use multi-process WAL. Drop the now-unused Error::ConflictingOptions variant and the turso.multiprocess_wal benchmark setting. Refs #27
emma31-dev
force-pushed
the
cleanup/27-audit-experimental-options
branch
from
November 24, 2026 22:51
b565e83 to
aa8095e
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements #27 by reducing
Optionsto the settings the crate acts on directly, and adds a configurable busy timeout.Added
Options::with_busy_timeoutsets how long a connection waits for a contended database lock before returningBusy. The default remains five seconds, andDuration::ZEROfails immediately on contention. The timeout applies to local stores and to the local cache of remote sync stores.Removed
with_index_method,with_vacuum,with_attach,with_generated_columns, andwith_without_rowid.with_multiprocess_walandwith_mvcc_passive_checkpoint.Error::ConflictingOptionsvariant, which only reported combinations of the removed builders.Applications that need the removed SQL capabilities can open their own Turso database or run the corresponding SQL.
Automatic engine flags
TransactionBehavior::Concurrentenables MVCC passive checkpointing and switches local databases to MVCC journal mode.Deferred,Immediate, andExclusiveenable Turso's multi-process WAL coordinator for file-backed local databases.Concurrentremains unsupported.Documentation
Deferred,Immediate,Exclusive, andConcurrenttheir own rows, including when to use each and the engine flags it enables.turso.multiprocess_walsetting.Testing
cargo fmt --all -- --checkcargo test --all-targets --lockedcargo test --all-targets --all-features --lockedcargo check --no-default-features --lockedcargo test --doc --all-features --lockedcargo clippy --tests --all-features --locked -- -D warningsRUSTDOCFLAGS="-D warnings" cargo doc --all-features --no-deps --lockedcargo package --list --locked --allow-dirtycargo clippy --all-targetsstill reports three pre-existing lints inbenches/backends.rs, unrelated to this change and not run by CI.Closes #27.